const Koa = require('koa')
const demi = '杜丽娟'
const ch = '陈浩浩'
// console.log(demi + ch)
const app = new Koa()


app.context.sayhi = function() {
  return '你好山地人'
}
app.use( async (ctx) => {
  console.log(ctx.request.method,ctx.request.url)
  ctx.body = ctx.sayhi()
})

app.listen(3000)